package com.home.entity;

import lombok.*;

import javax.persistence.*;
@Builder(toBuilder = true)
@AllArgsConstructor(access = AccessLevel.PACKAGE)
@NoArgsConstructor
@Getter
@Setter
@Table(name = "cxf_config")
public class JobConfig {
    /**
     * ID
     */
    @Id
    private Long id;

    /**
     * 采集地址
     */
    @Column(name = "fetch_url")
    private String fetchUrl;

    @Column(name = "filter")
    private String filter;

    /**
     * 状态 0开启 1删除
     */
    @Column(name = "del_flg")
    private Integer delFlg;

    private Integer dura;


    @Transient
    private String statusDesc;

    public void setStatus(String status){
        if(delFlg==0){
            statusDesc="启用";
        }else {
            statusDesc="信用";
        }

    }
}
